Replace specific numbers with another elements in a matrix in matlab